home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
smaltalk
/
stv.lha
/
STV
/
st_v
/
util
/
STVUTIL7.ZIP
/
WINRUN.TXT
< prev
next >
Wrap
Text File
|
1993-02-07
|
1KB
|
28 lines
Trying to run a Smalltalk/V for Windows 2.0 (or earlier) runtime under
WIN/OS of OS/2 2.0 returns system error about sharing violation on
VWSIGNON.DLL. Sign on windows comes up, then loading aborts. Filein the
following method to resolve:
!SystemDictionary methods !
signonDLL
"Answers the signon DLL's file name embedded in the
image. When the Smalltalk runtime application
( the image) is executed, the signon DLL specified in
aString will first be loaded before the application is started
up."
| aFile answer string |
aFile := File pathNameReadOnly: self imageName.
aFile atEnd
ifTrue:[ aFile close ]
ifFalse:[
aFile position: 16r1212.
( aFile next = $S and: [ aFile next = $F ] )
ifTrue: [
answer := aFile upTo: ( Character value:0 ).
aFile close.
^answer ]
ifFalse: [
aFile close.
^self error: 'Could not find signon file name signature characters' ] ]! !